home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 21
/
Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso
/
Aminet
/
util
/
batch
/
TTTool.readme
< prev
Wrap
Text File
|
1997-09-05
|
2KB
|
50 lines
Short: Prints icon Tooltype value to StdOut - cli only - V1.1
Author: A.P. Suggitt, Great Ayton.
Uploader: peter@apsayton.demon.co.uk (A.P. Suggitt)
Type: util/batch
Requires: WB 2.04+
Purpose: To read Tooltype value from Icon and print value to StdOut so
an IconX/XIcon/IconJ script can get it's variable parameters
from the icon instead of be in the script it'self or by the
use of enviroment variables.
Use: The code is pure and can be made Resident, it has the following
WB 2.0 Template:-
INPUTS
Template: TTTool FILE/A,TOOLTYPE,TOOLVALUE,DEFTOOL/S,NOQUOTE/S,NOLINE/S
FILE Filename of the File with the Icon to search (note .info not needed)
TOOLTYPE the Tooltype keyword to search for
TOOLVALUE Specific Value To check for
DEFTOOL Output the Default Tool string
NOQUOTE Do not put output string within Qoute marks
NOLINE Do not output a new line character after the string
RESULTS
RC=0 If no options given outputs list of all tooltypes
RC=0 If the Tooltype exists (and matches TOOLVALUE if given)
RC=5 If the Tooltype not found (or not matching TOOLVALUE if given)
RC=10 If the required .info file is not found
If the Tooltype in the Icon has a value this value is sent to STDOUT
whether or not it matches the requested TOOLVALE
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
1366 688 49.6% 16-Aug-97 13:44:22 TTTool.readme
632 282 55.3% 16-Aug-97 09:20:28 TTTool11.info
896 643 28.2% 16-Aug-97 13:41:28 +TTTool
2552 1126 55.8% 16-Aug-97 14:12:10 +TTTool.doc
501 288 42.5% 15-Aug-97 21:43:36 +TTTool.doc.info
462 206 55.4% 15-Aug-97 13:50:30 +TTTool.info
-------- ------- ----- --------- --------
6409 3233 49.5% 18-Aug-97 00:35:24 6 files